package com.briup.demo.extend;

import com.briup.demo.Category;

import java.util.List;

public class CategoryExtend extends Category {
    // 一级分类中包含二级分类
    private List<Category> categories;

    @Override
    public String toString(){
        return  "CategoryExtend{id=" + super.getId() +
                ", name=" + super.getName() +
                ", description=" + super.getDescription() +
                ", parent_d=" + super.getParentId() +
                ", categories=" + categories +
                "}";
    }
}
